package com.job.DQH.dqh722.homework02;

import java.util.Map;

public class Test {
    public static void main(String[] args) {
        String str1 = ">}>}{:}:";
        String str2 = null;
        String str3 = "d4as46wd46a5d4a6";
        try{
            Map<Character,Integer> maps = MapOperation.createMap(str1);
            for (Character key:maps.keySet()) {
                System.out.println(key+":"+maps.get(key));
            }
        }catch (PersonalException e){
            e.printStackTrace();
        }
        try{
            Map<Character,Integer> maps = MapOperation.createMap(str2);
            for (Character key:maps.keySet()) {
                System.out.println(key+":"+maps.get(key));
            }
        }catch (PersonalException e){
            e.printStackTrace();
        }
        try{
            Map<Character,Integer> maps = MapOperation.createMap(str3);
            for (Character key:maps.keySet()) {
                System.out.println(key+":"+maps.get(key));
            }
        }catch (PersonalException e){
            e.printStackTrace();
        }

    }

}
